#{extends 'main.html' /}
#{set title:'Home' /}

Novo Cliente

<form action="@{Clients.save()}" method="POST">

	<div>
		<label for="client.name">Nome</label><br/>
		<input type="text" name="client.name" value="${flash.name}"/><br/>
		<span class="error">#{error 'client.name' /}</span>
	</div>

	<div>
		<label for="neighborhoodId">Bairro</label><br/>
		#{select 'neighborhoodId', items:neighborhoods, valueProperty:'id', labelProperty:'name', id:'neighborhoodId' /}<br/>
		<!-- <span class="error">#{error 'client.name' /}</span> -->
	</div>
	
	<!-- http://www.playframework.org/modules/table-1.0/home -->

	<input type="submit" name="submit" value="Cadastrar" />

</form>